package com.ruoyi.ora.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备通话记录对象 ora_device_conversation
 * 
 * @author liuwp
 * @date 2024-11-14
 */
public class DeviceConversation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 通话类型 */
    @Excel(name = "通话类型", dictType = "ora_device_conversation_type")
    private Integer conversationType;

    /** 呼入号码 */
    @Excel(name = "呼入号码")
    private String inPhone;

    /** 呼出号码 */
    @Excel(name = "呼出号码")
    private String outPhone;

    /** 挂断时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "挂断时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hangupTime;

    /** 通话时长 */
    @Excel(name = "通话时长")
    private Long callDuration;

    private String firstWord;

    /** 通话录音 */
    @Excel(name = "通话录音")
    private Long voiceRecordId;

    public String getFirstWord() {
        return firstWord;
    }

    public void setFirstWord(String firstWord) {
        this.firstWord = firstWord;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setConversationType(Integer conversationType) 
    {
        this.conversationType = conversationType;
    }

    public Integer getConversationType() 
    {
        return conversationType;
    }
    public void setInPhone(String inPhone) 
    {
        this.inPhone = inPhone;
    }

    public String getInPhone() 
    {
        return inPhone;
    }
    public void setOutPhone(String outPhone) 
    {
        this.outPhone = outPhone;
    }

    public String getOutPhone() 
    {
        return outPhone;
    }
    public void setHangupTime(Date hangupTime) 
    {
        this.hangupTime = hangupTime;
    }

    public Date getHangupTime() 
    {
        return hangupTime;
    }
    public void setCallDuration(Long callDuration) 
    {
        this.callDuration = callDuration;
    }

    public Long getCallDuration() 
    {
        return callDuration;
    }
    public void setVoiceRecordId(Long voiceRecordId) 
    {
        this.voiceRecordId = voiceRecordId;
    }

    public Long getVoiceRecordId() 
    {
        return voiceRecordId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("userId", getUserId())
            .append("conversationType", getConversationType())
            .append("createTime", getCreateTime())
            .append("inPhone", getInPhone())
            .append("outPhone", getOutPhone())
            .append("hangupTime", getHangupTime())
            .append("callDuration", getCallDuration())
            .append("voiceRecordId", getVoiceRecordId())
            .toString();
    }
}
